package com._520it.crm.service;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com._520it.crm.domain.Driver;

public interface IDriverService {
	int deleteByPrimaryKey(@Param("id") Long id, @Param("drivingType") String drivingType);

	int insert(Driver record);

	Driver selectByPrimaryKey(@Param("id") Long id, @Param("drivingType") String drivingType);

	List<Driver> selectAll();

	int updateByPrimaryKey(Driver record);

    List<Driver> selectPage(int current, int size, String name, String sex, String drivingType, String drivingNum, String occupation, Date birthDate, Date firstDate);

	int selectPageCount(int current, int size, String name, String sex, String drivingType, String drivingNum, String occupation, Date birthDate, Date firstDate);
}
